(global.webpackJsonp = global.webpackJsonp || []).push([
  ["components/page-component/app-goods-list/app-goods-list"], {
    "3f73": function (t, e, n) {
      n.r(e);
      var i = n("93ec"),
        r = n("7919");
      for (var o in r) "default" !== o && function (t) {
        n.d(e, t, function () {
          return r[t]
        })
      }(o);
      n("c9ad");
      var s = n("2877"),
        a = Object(s.a)(r.default, i.a, i.b, !1, null, "66891718", null);
      e.default = a.exports
    },
    7101: function (t, e, n) {},
    7919: function (t, e, n) {
      n.r(e);
      var i = n("bc25"),
        r = n.n(i);
      for (var o in i) "default" !== o && function (t) {
        n.d(e, t, function () {
          return i[t]
        })
      }(o);
      e.default = r.a
    },
    "93ec": function (t, e, n) {
      var i = function () {
          var t = this;
          t.$createElement;
          t._self._c
        },
        r = [];
      n.d(e, "a", function () {
        return i
      }), n.d(e, "b", function () {
        return r
      })
    },
    bc25: function (t, e, n) {
      (function (t) {
        function i(t) {
          return t && t.__esModule ? t : {
            default: t
          }
        }

        function r(t, e, n, i, r, o, s) {
          try {
            var a = t[o](s),
              p = a.value
          } catch (t) {
            return void n(t)
          }
          a.done ? e(p) : Promise.resolve(p).then(i, r)
        }

        function o(t) {
          return function () {
            var e = this,
              n = arguments;
            return new Promise(function (i, o) {
              function s(t) {
                r(p, i, o, s, a, "next", t)
              }

              function a(t) {
                r(p, i, o, s, a, "throw", t)
              }
              var p = t.apply(e, n);
              s(void 0)
            })
          }
        }

        function s(t, e) {
          var n = Object.keys(t);
          if (Object.getOwnPropertySymbols) {
            var i = Object.getOwnPropertySymbols(t);
            e && (i = i.filter(function (e) {
              return Object.getOwnPropertyDescriptor(t, e).enumerable
            })), n.push.apply(n, i)
          }
          return n
        }

        function a(t, e, n) {
          return e in t ? Object.defineProperty(t, e, {
            value: n,
            enumerable: !0,
            configurable: !0,
            writable: !0
          }) : t[e] = n, t
        }
        Object.defineProperty(e, "__esModule", {
          value: !0
        }), e.default = void 0;
        var p = i(n("a34a")),
          c = n("2f62"),
          u = i(n("125c")),
          l = {
            name: "app-goods-list",
            components: {
              "app-price": function () {
                return n.e("components/page-component/goods/app-price").then(n.bind(null, "6c9f"))
              },
              "app-attr": function () {
                return n.e("components/page-component/app-attr/app-attr").then(n.bind(null, "d3c4"))
              },
              "app-pt-attr": function () {
                return n.e("components/page-component/app-pt-attr/app-pt-attr").then(n.bind(null, "051f"))
              },
              "app-member-price": function () {
                return n.e("components/page-component/app-member-mark/app-member-price").then(n.bind(null, "dd88"))
              },
              "app-sup-vip": function () {
                return n.e("components/page-component/app-sup-vip/app-sup-vip").then(n.bind(null, "348c"))
              },
              "app-iphone-x": function () {
                return n.e("components/basic-component/app-iphone-x/app-iphone-x").then(n.bind(null, "7598"))
              }
            },
            props: {
              listStyle: {
                type: String,
                default: function () {
                  return "2"
                }
              },
              list: Array,
              previewUrl: String,
              submitUrl: String
            },
            data: function () {
              return {
                show: 0,
                buyText: "立即购买",
                sign: "",
                goods_id: "",
                cartShow: 1,
                plugin: "",
                goods_list: [],
                buyBool: !1,
                cur_index: 0,
                item: null,
                show_pt: !1,
                pt: !0,
                selectAttr: {},
                appAttr: {},
                attrGroup: [],
                selectGroupAttrId: -1
              }
            },
            computed: function (t) {
              for (var e = 1; e < arguments.length; e++) {
                var n = null != arguments[e] ? arguments[e] : {};
                e % 2 ? s(n, !0).forEach(function (e) {
                  a(t, e, n[e])
                }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : s(n).forEach(function (e) {
                  Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
                })
              }
              return t
            }({}, (0, c.mapState)({
              theme: function (t) {
                return t.mallConfig.theme + "-color"
              },
              appImg: function (t) {
                return t.mallConfig.__wxapp_img.mall
              },
              appSetting: function (t) {
                return t.mallConfig.mall.setting
              },
              isShowCart: function (t) {
                return t.mallConfig.mall.setting.is_show_cart
              },
              isShowGoodsName: function (t) {
                return t.mallConfig.mall.setting.is_show_goods_name
              }
            }), {}, (0, c.mapGetters)("mallConfig", {
              getVideo: "getVideo"
            }), {
              listClass: function () {
                return 3 == this.listStyle ? "list-style-3 dir-left-wrap" : 2 == this.listStyle ? "list-style-2 dir-left-wrap" : ""
              }
            }),
            watch: {
              appAttr: {
                handler: function (t) {
                  "none" === t.display && (this.show_pt = !1)
                }
              }
            },
            methods: {
              setGroupAttrID: function (t) {
                this.selectGroupAttrId = t, this.selectAttr = {}, this.request_pt(t)
              },
              multiplayer: function () {
                if (this.pt) {
                  if (this.selectAttr && 0 === Object.keys(this.selectAttr).length) t.showToast({
                    title: "请选择规格",
                    icon: "none"
                  });
                  else if (this.selectAttr && Object.keys(this.selectAttr).length > 0) {
                    for (var e = this.item.mch_id, n = [], i = {
                        id: this.item.id,
                        attr: [],
                        num: this.appAttr.number,
                        goods_attr_id: this.selectAttr.id,
                        cart_id: 0
                      }, r = 0; r < this.selectAttr.attr_list.length; r++) {
                      var o = {
                        attr_id: this.selectAttr.attr_list[r].attr_id,
                        attr_group_id: this.selectAttr.attr_list[r].attr_group_id
                      };
                      i.attr.push(o)
                    }
                    n.push({
                      mch_id: e,
                      pintuan_order_id: 0,
                      pintuan_group_id: this.selectGroupAttrId,
                      goods_list: [i]
                    }), t.navigateTo({
                      url: "/pages/order-submit/order-submit?mch_list=".concat(JSON.stringify(n), "&preview_url=").concat(encodeURIComponent(this.$api.pt.order_preview), "&submit_url=").concat(encodeURIComponent(this.$api.pt.order_submit), "&order_page_url=/plugins/pt/order/order&plugin=pt")
                    })
                  }
                } else this.selectAttr = {}, this.pt = !0, this.request_pt(this.selectGroupAttrId)
              },
              buyClick: function (t) {
                (0, u.default)(t, this.sign, this, this.goods_list[this.cur_index])
              },
              attr: function (t) {
                this.appAttr = t
              },
              specification: function (t) {
                var e = this;
                switch (this.goods_id = t.id, this.sign = t.sign, "pintuan" != this.sign && (this.item = t, this.attrGroup = t.attr_groups, this.show = Math.random()), this.sign) {
                  case "advance":
                    this.cartShow = 0, this.buyText = "支付定金", this.buyBool = !0;
                    break;
                  case "booking":
                    this.cartShow = 0, this.buyText = "立即预约", this.plugin = "booking";
                    break;
                  case "pintuan":
                    this.$request({
                      url: this.$api.pt.detail,
                      data: {
                        id: this.goods_id,
                        group_id: 0
                      }
                    }).then(function (t) {
                      e.item = t.data.detail, e.selectGroupAttrId = e.item.pintuan_groups[0].id, e.attrGroup = e.item.attr_groups, e.show = Math.random(), e.show_pt = !0, e.request_pt(e.selectGroupAttrId)
                    });
                    break;
                  case "integral_mall":
                  case "step":
                    this.cartShow = 0, this.buyText = "立即兑换";
                    break;
                  case "gift":
                    this.cartShow = 0, this.buyBool = !0, this.buyText = "加入礼包"
                }
              },
              request_pt: function () {
                var t = o(p.default.mark(function t(e) {
                  var n;
                  return p.default.wrap(function (t) {
                    for (;;) switch (t.prev = t.next) {
                      case 0:
                        return t.prev = 0, t.next = 3, this.$request({
                          url: this.$api.pt.detail,
                          data: {
                            id: this.goods_id,
                            group_id: e
                          }
                        });
                      case 3:
                        0 === (n = t.sent).code && (this.item = n.data.detail), t.next = 10;
                        break;
                      case 7:
                        throw t.prev = 7, t.t0 = t.catch(0), new Error(t.t0);
                      case 10:
                      case "end":
                        return t.stop()
                    }
                  }, t, this, [
                    [0, 7]
                  ])
                }));
                return function (e) {
                  return t.apply(this, arguments)
                }
              }(),
              buy: function () {
                if (!this.submit()) return !1;
                var e = this.item,
                  n = this.appAttr.number,
                  i = this.selectAttr,
                  r = i.id,
                  o = [];
                for (var s in i.attr_list) o.push({
                  attr_id: i.attr_list[s].attr_id,
                  attr_group_id: i.attr_list[s].attr_group_id
                });
                var a = [],
                  p = {
                    mch_id: e.mch_id ? e.mch_id : 0,
                    goods_list: []
                  };
                p.goods_list.push({
                  id: e.id,
                  attr: o,
                  num: n,
                  cat_id: 0,
                  goods_attr_id: r
                }), a.push(p), t.navigateTo({
                  url: "/pages/order-submit/order-submit?mch_list=" + JSON.stringify(a)
                })
              },
              individual: function () {
                this.pt ? (this.pt = !1, this.selectAttr = {}, this.request_pt(0)) : 0 === Object.keys(this.selectAttr).length ? t.showToast({
                  title: "请选择规格",
                  icon: "none"
                }) : this.buy()
              },
              jump: function (e) {
                e.video_url && 1 == this.getVideo ? t.navigateTo({
                  url: "/pages/goods/video?goods_id=".concat(e.id, "&sign=").concat(e.sign)
                }) : t.navigateTo({
                  url: e.page_url
                })
              },
              onAttr: function (t) {
                this.selectAttr = t
              }
            },
            created: function () {}
          };
        e.default = l
      }).call(this, n("543d").default)
    },
    c9ad: function (t, e, n) {
      var i = n("7101");
      n.n(i).a
    }
  }
]), (global.webpackJsonp = global.webpackJsonp || []).push(["components/page-component/app-goods-list/app-goods-list-create-component", {
    "components/page-component/app-goods-list/app-goods-list-create-component": function (t, e, n) {
      n("543d").createComponent(n("3f73"))
    }
  },
  [
    ["components/page-component/app-goods-list/app-goods-list-create-component"]
  ]
]);